

// 通用接口
export interface generalInfo {
    code: number;
    message: string;
    ok: boolean;
}
// 1 . 一二三级菜单
export interface generalInfoDate {
    id: number | string;
    name: string;
    category1Id?: number;
    category2Id?: number;
}

export interface getCategoryType extends generalInfo {
    data:generalInfoDate[]
}

// 2. 定义属性flag?: boolean;
export interface attrValue {
    id?: number | string;
    valueName: string;
    attrId?: number;
    flag?: boolean;
}

// attrValuelist
export type attrValues = attrValue[]

// 定义data内值
export interface dataArr {
    platAndValueId?: number | string ;
    id?: number | string;
    attrName: string;
    categoryId?: number | string;
    categoryLevel: number | string;
    attrValueList: attrValues;
    data?: number;
}
    

// 定义data的对象
export type data = dataArr[] |undefined;

// 完成定义属性
export interface attrType {
    data: dataArr[];
}





